import request from '@/utils/request'
export interface BookType {
  id: string
  name: string
  createTime: string
  updateTime: string
}
export const getBookType = () => {
  return request<null,null,BookType[]>('/bookType/list', 'GET', { noToken: true })
}
export interface InsertBookType {
  name: string
}
export const postInsertBookType = (data: InsertBookType) => {
  return request<InsertBookType,null,BookType>('/bookType/insert', 'POST', { data })
}